package com.example.servicedemo;

import androidx.appcompat.app.AppCompatActivity;

import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Log;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        findViewById(R.id.button_toIBind).setOnClickListener(v -> {
            startActivity(new Intent(this, Activity1.class));
        });

        findViewById(R.id.button_toMessenger).setOnClickListener(v -> {
            startActivity(new Intent(this, Activity2.class));
        });

        findViewById(R.id.button_toMessenger2).setOnClickListener(v -> {
            startActivity(new Intent(this, Activity3.class));
        });
    }
}